using System;
using Server;
using Server.Items;
using Server.Mobiles;

namespace Server.Engines.Quests
{		
	public class ScaleArmorQuest : BaseQuest
	{				
		/* Scale Armor */
		public override object Title{ get{ return 1074711; } }
		
		/* Here's what I need ... there are some creatures called hydra, fearsome beasts, whose scales are especially 
		suitable for a new sort of armor that I'm developing.  I need a few such pieces and then some supple alligator 
		skin for the backing.  I'm going to need a really large piece that's shaped just right ... the tail I think 
		would do nicely.  I appreciate your help. */	
		public override object Description{ get{ return 1074712; } }
		
		/* I hope you'll reconsider. Until then, farwell. */
		public override object Refuse{ get{ return 1073580; } }
		
		/* Hydras have been spotted in the Blighted Grove.  You won't get those scales without getting your feet wet, 
		I'm afraid. */
		public override object Uncomplete{ get{ return 1074724; } }
		
		/* I can't wait to get to work now that you've returned with my scales. */
		public override object Complete{ get{ return 1074725; } }
	
		public ScaleArmorQuest() : base()
		{			
			AddObjective( new ObtainObjective( typeof( ThrashersTail ), "thrasher's tail", 1 ) );
			AddObjective( new ObtainObjective( typeof( HydraScale ), "hydra scales", 10 ) );
			
			AddReward( new BaseReward( typeof( TreasureBag ), 1072583 ) );
		}
		
		public override bool CanOffer()
		{
			return MondainsLegacy.BlightedGrove;
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}
		
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}		
	}
	
	public class Thallary : MondainQuester
	{
		public override Type[] Quests
		{ 
			get{ return new Type[] 
			{ 
				typeof( ScaleArmorQuest ),
				typeof( ThePuffyShirtQuest ),
				typeof( FromTheGaultierCollectionQuest ),
				typeof( HuteCoutureQuest )
			};} 
		}
		
		[Constructable]
		public Thallary() : base( "Thallary", "the cloth weaver" )
		{			
			SetSkill( SkillName.Meditation, 60.0, 83.0 );
			SetSkill( SkillName.Focus, 60.0, 83.0 );
		}
		
		public Thallary( Serial serial ) : base( serial )
		{
		}		
		
		public override void InitBody()
		{
			InitStats( 100, 100, 25 );
			
			Female = false;
			Race = Race.Elf;
			
			Hue = 0x8389;
			HairItemID = 0x2FCF;
			HairHue = 0x33;
		}
		
		public override void InitOutfit()
		{
			AddItem( new Sandals( 0x901 ) );
			AddItem( new LongPants( 0x721 ) );
			AddItem( new Cloak( 0x3B3 ) );
			AddItem( new FancyShirt( 0x62 ) );
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}
		
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
}